import request from '@/utils/request'

// 查询yhmcity列表
export function listYhmcity(query) {
  return request({
    url: '/cinema/cinema/yhmcity/list',
    method: 'get',
    params: query
  })
}

// 查询yhmcity详细
export function getYhmcity(id) {
  return request({
    url: '/cinema/cinema/yhmcity/' + id,
    method: 'get'
  })
}

// 新增yhmcity
export function addYhmcity(data) {
  return request({
    url: '/cinema/cinema/yhmcity',
    method: 'post',
    data: data
  })
}

// 修改yhmcity
export function updateYhmcity(data) {
  return request({
    url: '/cinema/cinema/yhmcity',
    method: 'put',
    data: data
  })
}

// 删除yhmcity
export function delYhmcity(id) {
  return request({
    url: '/cinema/cinema/yhmcity/' + id,
    method: 'delete'
  })
}

// 导出yhmcity
export function exportYhmcity(query) {
  return request({
    url: '/cinema/cinema/yhmcity/export',
    method: 'get',
    params: query
  })
}